package br.cnpq.webflowah.beans;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class PlanQuality implements Serializable {

	private static final long serialVersionUID = 1L;
	private Map<String, Double> nonNormalizedParameters = new HashMap<String, Double>();
	private Map<String, Double> normalizedParameters = new HashMap<String, Double>();
	// plan quality
	private double quality = 0;
	private List<Operacao> plano;

	public Map<String, Double> getNormalizedParameters() {
		return normalizedParameters;
	}

	public void insertNormalizedParameter(String name, Double value) {
		this.normalizedParameters.put(name, value);
	}

	/**
	 * Retorna o valor normalizado, intervalo de 0-1, do parametro.
	 * 
	 * @param parameter
	 *            Parametro
	 * @return Valor normalizado
	 */
	public Double getNormalizedParameter(String parameter) {
		return this.normalizedParameters.get(parameter);
	}

	public void insertNonNormalizedParameter(String name, Double value) {
		this.nonNormalizedParameters.put(name, value);
	}

	/**
	 * Retorna o valor não normalizado do parametro
	 * 
	 * @param parameter
	 *            Nosme do parametro.
	 * @return
	 */
	public Double getNonNormalizedParameter(String parameter) {
		return this.nonNormalizedParameters.get(parameter);
	}

	public Map<String, Double> getNonNormalizedParameters() {
		return this.nonNormalizedParameters;
	}

	public List<Operacao> getPlano() {
		return plano;
	}

	public void setPlano(List<Operacao> plano) {
		this.plano = plano;
	}

	public double getQuality() {
		return quality;
	}

	public void setQuality(double quality) {
		this.quality = quality;
	}

	public PlanQuality() {
		super();
	}
}
